package com.service.affiliate.google.test;

import com.google.api.client.googleapis.json.GoogleJsonResponseException;

public class HelloAnalyticsApi {
//	public static void main(String[] args) {
//		  try {
//		    // Step 1. Get an analytics service object.
//		    Analytics analytics = initializeAnalytics();
//
//		    // Step 2. Get the user's first profile ID.
//		    String profileId = getFirstProfileId(analytics);
//
//		    if (profileId != null) {
//
//		      // Step 3. Query the Core Reporting API.
//		      GaData gaData = getResults(analytics, profileId);
//
//		      // Step 4. Output the results.
//		      printResults(gaData);
//		    }
//		  } catch (GoogleJsonResponseException e) {
//		    System.err.println("There was a service error: " + e.getDetails().getCode() +
//		        " : " + e.getDetails().getMessage());
//		  }
//		   catch (Throwable t) {
//		    t.printStackTrace();
//		  }
//		}
}
